<?php

/**
 * 
 * @author yuxun
 *
 */
class SystemController extends AdminBaseController {
	
	public function index(){
		$this->setTitle('系统配置');
		$game = PubBase::getCurrentGame();
		$this->out['game'] = $game;
		$tabList = SystemService::tabList();
		$this->out['tabList'] = $tabList;
	}
	
	public function search_info(){
		$type = PubRequest::R('type');
		$this->out['type'] = $type;
		$this->layout = '';
		$this->tpl = $type;
		$data = SystemService::searchInfo($type);
		$this->out['data'] = $data; 
	}
	
	public function doEdit(){
		$ar = PubRequest::AR();
		$out = SystemService::doEdit($ar);
		$this->out = $out;
		$this->outType = 'json';
	}
	
	public function crossServer(){
		$this->setTitle('跨服参数配置');
		$game = PubBase::getCurrentGame();
		$this->out['game'] = $game;
		$tabList = SystemService::crossServerTabList();
		$this->out['tabList'] = $tabList;
	}


}